import {request} from "../http";
import type {LoginParams, LoginResult} from "../http/types";

export function login(data: LoginParams) {
    return request<LoginResult>({
        config: {
            url: '/admin-api/system/auth/login',
            method: 'post',
            data
        }
    })
}